package com.wuzf.mall_test.fragments

import android.graphics.Color
import android.os.Bundle
import android.view.View
import android.widget.Toast
import com.wuzf.mall.bottom.BaseBottomFragment
import com.wuzf.mall.bottom.BottomTabBean
import com.wuzf.mall.bottom.ItemBuilder
import com.wuzf.mall.fragment.MallFragment
import com.wuzf.mall_test.R

class TestFragment : BaseBottomFragment() {


    override fun setIndex(): Int {
        return 0
    }

    override fun setColorInt(): Int {
        return Color.RED
    }

    override fun setItems(): ItemBuilder {
        return ItemBuilder
            .builder()
            .addItem(BottomTabBean("{fa-heart-o}", "首页1"), HomeFragment())
            .addItem(BottomTabBean("{fa-code}", "首页2"), HomeFragment())
            .addItem(BottomTabBean("{fa-android}", "首页3"), HomeFragment())
            .addItem(BottomTabBean("{fa-home}", "首页4"), HomeFragment())
    }
}